#include<stdio.h>

int main()
{
	printf("%d\n", 6 % 4);    //1
	printf("%d\n", -6 % -4);  //-1
	printf("%d\n", -6 % 4);   //-1
	return 0;
}